package org.dromara.house.service;


import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletResponse;
import org.dromara.common.core.domain.R;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.house.domain.bo.ParkHousingBo;
import org.dromara.house.domain.bo.ParkHousingFileBo;
import org.dromara.house.domain.dto.DetailsDto;
import org.dromara.house.domain.dto.ParkHousingDto;
import org.dromara.house.domain.entity.ParkFile;
import org.dromara.house.domain.entity.ParkHousing;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 房源表 服务类
 * </p>
 *
 * @author LCH
 * @since 2025-08-26
 */
public interface ParkHousingService extends IService<ParkHousing> {

    TableDataInfo<ParkHousing> selectPageList(ParkHousingBo bo, PageQuery pageQuery);

    ParkHousing selectById(Long id);

    int insertParkHousing(ParkHousing parkHousing);

    int updateParkHousing(ParkHousing parkHousing);

    int deleteByIds(Long[] roleIds);

    R<ParkFile> uploadImage(MultipartFile file);

    void downloadImage(String fileId, HttpServletResponse response);

    R<Void> saveImage(ParkHousingFileBo bo);

    R<Void> deleteImage(ParkHousingFileBo bo);


    DetailsDto getDetails(ParkHousingBo bo);

}
